package com.zimmur.service.impl;

import java.util.List;

import javax.annotation.Resource;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.stereotype.Service;

import com.zimmur.dao.IUserRecommandDao;
import com.zimmur.model.account.UserRecommand;
import com.zimmur.model.zone.SharedProperty;
import com.zimmur.service.IUserRecommandService;
import com.zimmur.service.impl.zone.TopicServiceImpl;
  
  
@Service("userRecommandService")  
public class UserRecommandServiceImpl implements IUserRecommandService {  
    @Resource  
    private IUserRecommandDao userRecommandDao;

    private static Logger log=LoggerFactory.getLogger(TopicServiceImpl.class);
    

	@Override
	public int insertUserRecommand(UserRecommand userRecommand) {
		return userRecommandDao.insertUserRecommand(userRecommand);
	}

	@Override
	public int updateUserRecommand(UserRecommand userRecommand) {
		return userRecommandDao.updateUserRecommand(userRecommand);
	}

	@Override
	public UserRecommand selectUserRecommand(UserRecommand userRecommand) {
		return userRecommandDao.selectUserRecommand(userRecommand);
	}

	@Override
	public List<UserRecommand> selectByIsvalidRecommandList(SharedProperty sharedProperty) {
		List<UserRecommand> userRecommandList=null;
		try {
			userRecommandList = userRecommandDao.selectByIsvalidRecommandList(sharedProperty);
		} catch (Exception e) {
			log.error(e.getMessage());
		}
		return userRecommandList;
	}
    


	
	 
}  
